package com.jzit168.library_retrofit.exception

/**
 *@Desc: 接受网络请求200,返回数据中code非0的自定义错误信息
 *@Author: Android Developer
 *@Date: 2020/10/15
 *
 **/
class RequestException(private val code: Int, override val message: String?) : RuntimeException() {

    fun getCode() = code

    fun getInfo() = message
}